package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TBalanceMapper;
import com.ruoyi.system.domain.TBalance;
import com.ruoyi.system.service.ITBalanceService;

/**
 * 余额Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-03-17
 */
@Service
public class TBalanceServiceImpl implements ITBalanceService 
{
    @Autowired
    private TBalanceMapper tBalanceMapper;

    /**
     * 查询余额
     * 
     * @param bid 余额主键
     * @return 余额
     */
    @Override
    public TBalance selectTBalanceByBid(Long bid)
    {
        return tBalanceMapper.selectTBalanceByBid(bid);
    }

    /**
     * 查询余额列表
     * 
     * @param tBalance 余额
     * @return 余额
     */
    @Override
    public List<TBalance> selectTBalanceList(TBalance tBalance)
    {
        return tBalanceMapper.selectTBalanceList(tBalance);
    }

    /**
     * 新增余额
     * 
     * @param tBalance 余额
     * @return 结果
     */
    @Override
    public int insertTBalance(TBalance tBalance)
    {
        return tBalanceMapper.insertTBalance(tBalance);
    }

    /**
     * 修改余额
     * 
     * @param tBalance 余额
     * @return 结果
     */
    @Override
    public int updateTBalance(TBalance tBalance)
    {
        return tBalanceMapper.updateTBalance(tBalance);
    }

    /**
     * 批量删除余额
     * 
     * @param bids 需要删除的余额主键
     * @return 结果
     */
    @Override
    public int deleteTBalanceByBids(Long[] bids)
    {
        return tBalanceMapper.deleteTBalanceByBids(bids);
    }

    /**
     * 删除余额信息
     * 
     * @param bid 余额主键
     * @return 结果
     */
    @Override
    public int deleteTBalanceByBid(Long bid)
    {
        return tBalanceMapper.deleteTBalanceByBid(bid);
    }
}
